/* Markdown 内容样式优化 */
:deep(.vuepress-markdown-body),
:deep(.md-preview-wrapper) {
  background: transparent !important;
  padding: 0 !important;
  color: #2b2f36;
  font-size: 15px;
  line-height: 1.65;
  max-width: none;
}

/* 标题样式 */
:deep(h1),
:deep(h2),
:deep(h3),
:deep(h4) {
  color: #1e293b;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
  border-bottom: none;
}

/* 第一个元素去除上边距 */
:deep(*:first-child) {
  margin-top: 0 !important;
}

/* 最后一个元素去除下边距 */
:deep(*:last-child) {
  margin-bottom: 0 !important;
}

:deep(h1) {
  font-size: 22px;
  color: #0f172a;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 10px;
}

:deep(h2) {
  font-size: 19px;
  color: #1e293b;
  font-weight: 700;
  margin-top: 14px;
}

:deep(h3) {
  font-size: 17px;
  color: #334155;
  font-weight: 600;
  margin-top: 12px;
}

:deep(h4) {
  font-size: 15px;
  color: #475569;
  font-weight: 600;
}

/* 段落样式 */
:deep(p) {
  margin: 6px 0;
  line-height: 1.65;
  color: #334155;
  font-size: 15px;
}

/* 列表样式 */
:deep(ul),
:deep(ol) {
  margin: 8px 0;
  padding-left: 24px;
}

:deep(li) {
  margin: 4px 0;
  padding-left: 8px;
  line-height: 1.65;
  color: #334155;
  font-size: 15px;
}

:deep(ul > li) {
  list-style-type: disc;
  list-style-position: outside;
  margin-left: 4px;
}

:deep(ul > li::marker) {
  color: #64748b;
  font-size: 14px;
}

:deep(ol > li) {
  list-style-type: decimal;
  list-style-position: outside;
  margin-left: 4px;
}

:deep(ol > li::marker) {
  color: #64748b;
  font-weight: 600;
}

/* 嵌套列表 */
:deep(li > ul),
:deep(li > ol) {
  margin-top: 4px;
  margin-bottom: 4px;
  padding-left: 20px;
}

/* 二级列表项 */
:deep(ul ul > li),
:deep(ol ul > li) {
  list-style-type: circle;
}

/* 三级列表项 */
:deep(ul ul ul > li),
:deep(ol ul ul > li) {
  list-style-type: square;
}

/* 强调文本 */
:deep(strong),
:deep(b) {
  font-weight: 700;
  color: #0f172a;
}

:deep(em),
:deep(i) {
  font-style: italic;
  color: #475569;
}

/* 代码块样式 */
:deep(code) {
  background: #f3f4f6;
  color: #374151;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 13px;
  font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
  border: 1px solid #e5e7eb;
}

:deep(pre) {
  background: #0d1117;
  color: #c9d1d9;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 10px 0;
  border: 1px solid #30363d;
}

:deep(pre code) {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  border: none;
  font-size: 13px;
}

/* 引用块样式 */
:deep(blockquote) {
  border-left: 3px solid #d1d5db;
  background: transparent;
  padding: 2px 0 2px 12px;
  margin: 10px 0;
  color: #4b5563;
}

:deep(blockquote p) {
  margin: 0;
}

/* 分隔线 */
:deep(hr) {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0;
}

/* 表格样式 */
:deep(table) {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

:deep(th),
:deep(td) {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
}

:deep(th) {
  background: #f9fafb;
  font-weight: 600;
  color: #111827;
}

:deep(tr:nth-child(even)) {
  background: #f9fafb;
}

/* 链接样式 */
:deep(a) {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}

:deep(a:hover) {
  text-decoration-color: rgba(37, 99, 235, 1);
}

/* 图片样式 */
:deep(img),
:deep(.medium-zoom-image) {
  max-width: 300px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 8px;
  margin: 12px 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

